﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Materia.aspx.cs" Inherits="SistemaAcademico.Pages.Materia" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
        <h1 class="page-title">
            <i class="icon-pushpin"></i>Cursos/Aulas
        </h1>
        <div id="Div1" runat="server" class="widget">
            <div class="widget-header">
                <h3>Matérias</h3>
            </div>
            <div id="Div2" runat="server" class="widget-content">
                <div class="CSSTableGenerator">
                    <asp:GridView ID="grvMaterias" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="SqlDtSrcMateria">
                        <Columns>
                            <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True" SortExpression="Id" />
                            <asp:BoundField DataField="nmMateria" HeaderText="Nome" SortExpression="nmMateria" />
                            <asp:BoundField DataField="dsCargaHorariaSemestral" HeaderText="Carga horária semestral" SortExpression="dsCargaHorariaSemestral" />
                        </Columns>
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDtSrcMateria" runat="server" ConnectionString="<%$ ConnectionStrings:SATCCConnectionString %>" SelectCommand="SELECT * FROM [MateriaSet]"></asp:SqlDataSource>
                </div>
                <br />
                <asp:Button ID="btnNovaMateria" CssClass="btn btn-primary btnSalvar" PostBackUrl="~/Pages/NovaMateria.aspx" runat="server"
                    Text="Nova matéria" />
            </div>
        </div>
    </form>
</asp:Content>
